#include <stdio.h>
#include "app_config.h"
#include "LOG.h"
#include "../components/my_driver/nvs_driver.h"
#include "../components/uart_handle_module/uart_handle.h"
#include "../components/my_driver/spi_driver.h"
#include "../components/cache_RT/cache_handle.h"
#include "../components/ModeHandle/task_app_logic.h"
#include "../components/task_sensor_dect.h"
#include "../components/cache_RT/report_handle.h"

void app_main(void)
{
    printf("into app_main()\n");
    LOG_INFO("TOO1 is %s\n",DAZZLING);
    driver_nvs_init(); //初始化nvs
    device_spi_init(); //初始化spi1
    cache_init();
    init_uart_handle();
    task_sensor_dectect_init();
    task_app_logic_init();
    task_iot_report_init(); //上报函数
}
